﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
namespace KLF.Lib.Browser.JavaScriptHelpers
{
    #region Using Statements

    using System;

    #endregion

    /// <summary>
    /// Dummy ActiveXObject -- Throws an exception and possibly an event to
    /// notify the API that an ActiveXObject was requested by the page.
    /// </summary>
    public class ActiveXObject
    {
        public ActiveXObject(string comSpec)
        {
            Console.WriteLine("An ActiveXObject of type '{0}' was requested.", comSpec);
            throw new ArgumentException("An ActiveXObject of type '" + comSpec + "' was requested.");
        }
    }
}
